package com.enjoy.webservice;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.xml.ws.Endpoint;

@Component
public class InitWS {

    @PostConstruct
    public void init() {
        Endpoint.publish("http://127.0.0.1:8085/serverCase", new JwsServiceCase());
        System.out.println("http://127.0.0.1:8085/serverCase发布成功");
    }
}
